// 模板类型
export interface TemplateCategory {
  code: string;
  name: string;
  description: string;
  icon: string;
  sort_order: number;
}

// 参数配置
export interface ParamConfig {
  key: string;
  label: string;
  type: 'string' | 'number' | 'boolean' | 'image' | 'array';
  component: string;
  required?: boolean;
  default?: any;
  description?: string;
  props?: Record<string, any>;
}

// 基础模板
export interface BaseTemplate {
  name: string;
  category: string;
  description: string;
  workflow_json: Record<string, any>;
  param_schema: {
    basic: ParamConfig[];
    advanced?: ParamConfig[];
  };
} 